package com.KKd.mapper;

import com.KKd.pojo.Chain;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ChainMapper {
    //添加友链
    int addChain(Chain friendChain);
    //根据id删除友链
    int deleteChainById(@Param("chainId")Integer chainId);
    //根据id置顶友链
    int setChainFirstById(@Param("chainId")Integer chainId);
    //查询友链
    List<Chain> queryChains();
}
